// 云函数入口文件
const cloud = require('wx-server-sdk')
cloud.init({
  env: 'cloud-demo-dev-4gvtj96e9f7324c6'
});

const db = cloud.database();
const collection = db.collection('joke');

// 云函数入口函数
exports.main = async (event, context) => {

  return await db.collection('joke').get();
 
}
